package top.luoblog.observer.withjdk.push;

import java.util.Observable;
import java.util.Observer;

/**
 * @author : luo
 * @description : 观察者实现 Observer
 */
public class CounterObserver implements Observer {

    @Override
    public void update(Observable o, Object arg) {
        System.out.println(o.getClass());
        System.out.println(arg);
    }

}
